package com.gxa.service.impl;

import com.gxa.dao.LoginMapper;
import com.gxa.pojo.LoginUser;
import com.gxa.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper loginMapper;


    @Override
    public LoginUser login(String name, String password) {
        return loginMapper.selectLoginUserByNameAndPassword(name,password);
    }
}
